package com.lufan.data.entity;


import lombok.Data;

import java.util.List;

@Data
public class VideoBasicInfoEntity {
    private Integer code;
    private String message;
    private Integer ttl;
    private Data data;

    @lombok.Data
    public static class Data {
        private String bvid;
        private Long aid;
        //稿件分P总数
        private Integer videos;
        //稿件封面图片url
        private String pic;
        //稿件标题
        private String title;
        // 稿件总时长
        private Long duration;
        //视频分P列表
        private List<Page> pages;

    }

    @lombok.Data
    public static class Page {
        private Long cid;  // 改为Long类型，避免数值溢出
        //分P序号 从1开始
        private Integer page;
        //分P标题
        private String part;
        //分P持续时间(单位为秒)
        private String duration;
        //当前分p封面(第一帧)
        private String first_frame;

    }

}




